package cn.outsourcing.supermarket.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分类值对象
 *
 * <p>返回值转换为驼峰
 *
 * @author gzkemays
 * @since 2021/10/21 23:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class CategoryVO {
  Integer id;
  String name;
  String imgUrl;
  /** 该 pHeight JsonNaming 转化失败 --> pheight */
  @JsonProperty(value = "p_height")
  Integer pHeight;
}
